<template>
	<view class="box" :style="{'padding-top':systemHeight+29+'px'}">
		<view class="head">
			<image class="back" src="/static/img/back.png" @click="back"></image>
			<view>Order</view>
			<view class="right"></view>
		</view>
		<view class="box_top">
			<view class="top_select" v-for="(item,index) in topList" :key="index" @click="selectId=item.id"
				:class="{'select_change':selectId==item.id}">
				{{item.title}}
				<view class="select_boder" v-if="selectId==item.id"></view>
				<view class="select_boderno" v-else></view>
			</view>
		</view>
		<view class="content_box">
			<view class="content" @click="goDetail()">
				<view class="content_title">Motorcycle</view>
				<view class="lie">
					<view class="circle"></view>
					<view>Starting point positioning name</view>
				</view>
				<view class="line"></view>
				<view class="lie">
					<view class="circle orther_cirlce"></view>
					<view>Starting point positioning name</view>
				</view>
				<view class="time">Order Time:2025-04-06 12:01:04</view>
				<view class="status">In Progress</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				selectId: '1',
				systemHeight: null,
				topList: [{
					id: 1,
					title: 'All'
				}, {
					id: 2,
					title: 'In Progress'
				}, {
					id: 3,
					title: 'Completed'
				}]
			}
		},
		created() {
			this.systemHeight = uni.getSystemInfoSync().statusBarHeight
		},
		methods: {
			goDetail(){
				this.utils.To('/pages/pay/customOrderDetail')
			},
			back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style>
	.box {
		position: fixed;
		width: 100%;
		height: 100vh;
	}

	.head {
		width: 92%;
		margin: 0rpx auto;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-family: Mont;
		font-weight: bold;
		font-size: 32rpx;
	}

	.back {
		width: 20rpx;
		height: 36rpx;
	}

	.right {
		width: 20rpx;
	}

	.box_top {
		width: 83%;
		margin: 70rpx auto 45rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.top_select {
		display: flex;
		flex-direction: column;
		align-items: center;
		box-sizing: border-box;
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
		color: #101010;
	}

	.select_change {
		color: #33BA78;
	}

	.select_boder {
		width: 46rpx;
		height: 8rpx;
		background: #33BA78;
		border-radius: 4rpx;
	}
	.select_boderno{
		width: 46rpx;
		height: 8rpx;
	}
	.content_box{
		width: 100%;
		overflow-y: auto;
		height: 75vh;
	}
	.content {
		box-sizing: border-box;
		padding: 41rpx;
		margin: 0rpx auto 31rpx;
		position: relative;
		width: 92%;
		background: #FFFFFF;
		box-shadow: -10rpx -1rpx 50rpx 0rpx rgba(55, 55, 55, 0.08);
		border-radius: 30rpx;
	}

	.content_title {
		font-family: Mont;
		font-weight: bold;
		font-size: 36rpx;
		margin-bottom: 34rpx;
	}

	.lie {
		display: flex;
		align-items: center;
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
	}

	.circle {
		width: 18rpx;
		height: 18rpx;
		background: #FFAA44;
		border-radius: 9rpx;
		margin-right: 22rpx;
	}

	.orther_cirlce {
		background: #33BA78;
	}

	.line {
		width: 1rpx;
		height: 53rpx;
		border-radius: 1rpx;
		border-left: 1px dashed #7A7A7A;
		margin-left: 8rpx;
	}

	.time {
		margin: 46rpx 0 0rpx;
		font-family: Mont;
		font-weight: 400;
		font-size: 22rpx;
		color: #050A10;
		line-height: 37rpx;
		opacity: 0.8;
	}

	.status {
		top: 40rpx;
		right: 40rpx;
		position: absolute;
		font-family: Mont;
		font-weight: 600;
		font-size: 24rpx;
		color: #33B978;
	}
</style>